import logging

logging.basicConfig(level=logging.DEBUG, filename='/var/log/record.log', format='%(asctime)s | %(levelname)s | %(message)s', datefmt='%Y-%m-%d %I:%M:%S %p')